package com.vrv.app.cyberspace.modules.sys.controller;


import com.vrv.app.cyberspace.common.utils.JSONResult;
import com.vrv.app.cyberspace.common.validator.Assert;
import com.vrv.app.cyberspace.modules.sys.service.IEventTypeTableService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author sm
 * @since 2017-12-15
 */
@Api(description="事件类型")
@RestController
@RequestMapping("/sys/eventType")
public class EventTypeTableController {
    @Autowired
    private IEventTypeTableService eventTypeTableService;

    @GetMapping()
    public JSONResult getListEvent(Integer parentID) {
        Assert.isNull(parentID,"level不能为空");
        return eventTypeTableService.getListEventType(parentID);
    }
}

